//
//  BPNavButtonView.m
//  BeautyPicture
//
//  Created by 沈振邦 on 15/9/16.
//  Copyright (c) 2015年 szb. All rights reserved.
//

#import "BPNavButtonView.h"

@implementation BPNavButtonView

- (id)init
{
    // 这个是 相册 上面的 导航栏
    self = [super init];
    if (self) {
        self.titleLabel.font = [UIFont boldSystemFontOfSize:15.0f];
        self.titleLabel.textColor = BPFenHongColor;
        [self setImage:[UIImage imageNamed:@"返回"] forState:UIControlStateNormal];
        self.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
        [self setImageEdgeInsets:UIEdgeInsetsMake(0, -7, 0, 0)];
        [self setTitleEdgeInsets:UIEdgeInsetsMake(0, -5, 0, 0)];
        //设置按钮为尺寸，为图片尺寸
        self.width = 60;
        self.height = 20;
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
